<template>
  <view>
    <text>子组件传来的值: {{ childValue }}</text>
    <Child @childEvent="handleChildEvent" />
  </view>
</template>

<script>
import Child from './Child.vue'; // 引入子组件

export default {
  components: {
    Child
  },
  data() {
    return {
      childValue: ''
    };
  },
  methods: {
    handleChildEvent(value) {
      // 处理子组件传来的值
      this.childValue = value;
    }
  }
}
</script>

<style scoped>
/* 父组件样式 */
</style>